package com.jimmy.gank.di.component;

import android.content.Context;

import com.jimmy.gank.GankApplication;
import com.jimmy.gank.api.ApiService;
import com.jimmy.gank.di.modules.ApplicationModule;

import javax.inject.Singleton;

import dagger.Component;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;

@Singleton
@Component(modules = ApplicationModule.class)
public interface ApplicationComponent {

    void inject(GankApplication application);

    Context context();

    ApiService apiService();

    OkHttpClient okHttpClient();

    Interceptor interceptor();

}